/**
 * consts js file;
 * company:junqitecch
 * author:xuzuiotao
 * constant values
 */

module.exports = Object.freeze({
	Resource:{
		IMAGE:1,
        TEXT:2,
        IMAGETEXT:3,
        HTML:4,
        LINK:5,
        
        CUSTOM:100,
	},
	
	Weixin:{
		APPLET_ID:'wx5441a2929cd3b547',  //碳排放个人版appid
		APPLET_SECRET:'5394b53f6c3ea65d2556a6af6d95859a',		
	},
	Url:{
		
		PROMOTION:'http://www.jqwise.cn/',
		
		MAIN:'https://www.jqepay.cn',
	    MAIN_NOS:'http://www.jqepay.cn',

		MOBILE:'https://m.jqepay.cn',
		PAYE:'https://pay.jqepay.cn',
		FILE:'https://file.jqepay.com',
		
	},
	RongCloud:{  
		APP_KEY:'qd46yzrfq32df',
		APP_SECRET:'Wrn23otcmR1',
	},
	MySQL:{
	    host:'127.0.0.1',//'39.104.66.147',// '114.80.210.240',//'59.110.54.101',
	    user:'root',// 'api',
	    password:'Leadtone.1234',// 'Huayou.1234',
		
	    database: 'carbon_test',
	    port: 3366,
	    charset:'UTF8MB4_GENERAL_CI',
	    connectTimeout  : 60 * 60 * 1000,
	    acquireTimeout   : 60 * 60 * 1000,
	    timeout         : 60 * 60 * 1000,
	    connectionLimit:300, //最大连接数

	},
	
	MongoOptions:{  
		    server: {
		        auto_reconnect: true,
		        poolSize: 10
		    }
		},

	RedisServerIP:'127.0.0.1',
//	MongoURL:'mongodb://xmyj_api:Xinma.123@'+'59.110.54.101'+':2700/tournote',	
	MongoURL:'mongodb://'+'127.0.0.1'+':2700/tournote',	
	
	Qiniu:{
		SCOPE:'jqpay',
		ACCESS_KEY:'ZCbe5SrbuODoVpmDA3f1O_3rBI1JOAHo3o1dc6lV',
		SECRET_KEY:'Ttzyhi6ksatw53420Nci-dehSg8ukwP9vp0QCHnF',
		BUCKET_NAME: 'jqpay',
        BASE_URL:'https://file.jqsmm.com',
        UPLOAD_URL:'https://up.qbox.me',
        REGION:'NCN',
		//		SCOPE:'jqtwander',
		//		ACCESS_KEY:'jA2RXxwNU1xO-_UAZ3OvQfqDHoM6jI96AiVxpoah',
		//		SECRET_KEY: 'M4rP9DyBqFmT8XFHhEdstbyZ-uCRAm5c_9Vb9MsF',		
		
		TIMEOUT:3600*24*365,
	},
	MessageStatus:{
		RUNNING:1,
		READY:2,
		ENDED:20,
	},

	Zfb:{
//		https://openapi.alipay.com/gateway.do
		NOTIFY_URL:'https://pay.jqepay.cn/v30/ali/notify',

		APPID:'2017112900245918',
		METHOD_PRECREATE:'alipay.trade.precreate',//'alipay.trade.precreate',//alipay.trade.app.pay',//'alipay.trade.create',//'alipay.trade.app.pay',
		METHOD_PAY:'alipay.trade.pay',
		SERVICE:'alipay.trade.create',//'alipay.trade.precreate',//alipay.trade.app.pay',//'alipay.trade.create',//'alipay.trade.app.pay',
		METHOD_AUTH_TOKEN:'alipay.system.oauth.token',

		SELLERI_ID:'615689305@qq.com',
		SELLERI_EMAIL:'615689305@qq.com',
		PRODUCT_CODE:'QUICK_WAP_PAY',
	    PARTNER:"2088702380498449",
	    HOST: "mapi.alipay.com",
	    VERIFY_PATH: "/gateway.do?service=notify_verify&",
	    PATH:"gateway.do?",
	    RSA_PRIVATE:'-----BEGIN RSA PRIVATE KEY-----\n'+
				    'MIIEogIBAAKCAQEAwA6T3dcFX/pSDBznTMlXEGfIE9bGZZfRwZalOH82l2PpDJcS\n'+
				    'M9Wke9i/qSYojwNXf++1P2g8vSS5jO8EXIt/KCIVhVgWxDXssgIiOpod2TWgHBZL\n'+
				    'Z9L5TtAkHVnM6/qiloBbNu07bpHZnfWjDoflwO/YQJ1l9Vg1oLOUaFPrGCbFtNr3\n'+
				    'vE0CzzWe57+SjqaQaHMxKebgw6Zl2UN9drcF3gbZ11Y5cOC6dvX8LOKaADB1sywy\n'+
				    '2tHyp5nJkrtWw9Qrfz9XueByl+rnOAREWzxMI2PgHGSXTAjVIgkp8YS2a97iic+Y\n'+
				    '6MW+4BzlmGCMLyd20SaaPhqRu4kMXQnjPfQ5kQIDAQABAoIBAFp1g0f1wt5V9Ncn\n'+
				    'tfoAyzU67I4Llx66x107K07U/E2KDXaUoUow0mxSxtNQ2cGifVARA3l+Cz27UnoD\n'+
				    'CjbcrWOlyiUoPHDmRToCr0SS2oQ4MdWI2rNoN2zbtGbuqQps3q+sfUn9qwSFRc6U\n'+
				    'p9xsPdcGIQEuIZvRlFDAxKHvBMg2iLb5K/YVdJ0WfG1thYxJ2EQkTmhWk3cHm6ps\n'+
				    'bhg2JZJGumw87cBTVwVw02PFfKa7iWKBX97fs/8FjDGaDZhU4wmLKPK4McAEi0h5\n'+
				    'QHq7Xhbyk82qHG1DvwER4sQ9QXwJt1Xsey0gcrKbjplr9+7f8yMK+hhzhNSHsito\n'+
				    'tWh5uNECgYEA97jAmgq9uZRN+dB+L6wL9fKqiYS2/dmYgyVB0PynHWpGB3kBK+yv\n'+
				    '/tO9W+beICG0soWA8eAjzfBIRnqAxgKTa/e/hpHseeyrmWd15PDwZszsvNLldUGE\n'+
				    'OW1CXf5F3z+U8ZZ0knSIWitNciEU2dtdNv6FBVLO1QSeAPf2csbUAQ8CgYEAxnmd\n'+
				    'rPOHsztG+RY+eboJqecIjx/rv+ckhU2IYxd37OTW19nGuNBhgOF9ONVi2eeSSUgv\n'+
				    'VL+iisS1K/zxBsQ3y+qBBhXdLWFAVpBk5d4bQbTwIcrTAu30RJ5xgkmQEXK5C2SU\n'+
				    'CpZg4/e8XcMs5nxUPAQkRqJmduJFhPuxZ6Gg218CgYAQCMNetSdGpdTOQLKKP2ae\n'+
				    'ytBDCnYVxEnc40J5VoEypDhYL3rl7vINWoM9OZpTFhtuGroX7dwjblQfS7qeFniY\n'+
				    'WnbpLPTTh4Ar88hrwzSsUsNYDYaQqmb2mJ3dG6JGKwVnBcgR2r0gqQDgTEffOhW0\n'+
				    'g5D0oUGGBEB9647mKvx5/QKBgFX5dpDlyUGdiuf5d8S5DtiXaMC+/htZ4BsSc+Mg\n'+
				    '1mU618oW3xtNwP7YLqtA3BoyUs8FwuL+REXCYgyU/D+HHfhqM8vUCsROnVUiJWLh\n'+
				    'rILxAxhQSMm7FBXpYJgkj5DPVlMWFX7kl0IJHYKsOjX5Y2/AB4rFbIdRCvZJJRcU\n'+
				    'D58XAoGABvqiMCSlYZ1xbafBdydc0WIojfSLIk/2suOJFnMrgTxGjjGAsIGpP5jc\n'+
				    'VYDD6u02EBKlqbJ8j137QmYQyUpy+GlQfY7Wt2eI+zp3sICq5HICEiROuRpLTi9U\n'+
				    'FGsIqOGkMUsS+200YiefI2zlwhW6/u1XJX/k9VPbxw4ao/pEStY=\n'+
				    '-----END RSA PRIVATE KEY-----',

	    RSA_PRIVATE2:'-----BEGIN RSA PRIVATE KEY-----\n'+
	                'MIIEogIBAAKCAQEAzkUznrFllKlVzQNV7Ap/R4RvtgeokqNSb5/3zVjmzknCFlch57upnQY3oofABgc\n'+
	                'wpO81IoYd/jxd6N27c9vF1dvdJp258wVeYcvP4aMFsdI+KSzqEpESAt4/ZA95i5JDLa2Y0TuuIXMmoU\n'+
	                'tu9Dz5ocfJUrYCUhZSO/oSibO9cAwjcpsavcm5EKu+RSV2xhOOFNmirw7+h826Cj4Oj+jLJ2nqGamcZ\n'+
	                'h5XFvnReUBDALpjMh192jn8YOrE+hy0A9Qf9mZKMr65/+fcAb/9USeeTQYtr/cy8Tm9TVDOw1erk/e+\n'+
	                'POuO4rVzPlX0XGOgAYouPTDWrDn5j5jWpSsKwbb/qQIDAQABAoIBAArvHCdjW/EfcM7nSFy0yb5uxMU\n'+
	                'vbr4nLi2Am1AlUEbLHiC1CbUQ+5K5S6Wv8HvhUbDMhVKJLXnWlVvMtS0VD02g0/5CCiNZu4EPnrtlOt\n'+
	                '4MOQNRwC6vxfak9VNGhrjhTfJT62/b7AUV54xRRVZpDQqIXqGlyEW1rTJEtUrbXkVcJwAfw+JtjYI+v\n'+
	                'nH8zz1VKxI2quPYEosE850E2Fj07/IVAqeQ159i7DF2nxMXVwLDs/wZXJOLqDB0jdeR0vvxJPjU0kms\n'+
	                'IMgWkmUB/Yg5ltFpRRxvlOV8rrQnDXIhNRlCQ46AJwtN6EcrDvqZRmhRCZ53FsBSi0GbFXnzz2HT7AE\n'+
	                'CgYEA5j0DeM/PukDjt5HuaZ72eC62nnTkhh9I9wquW9dyS+bcf9ycEMnACjvmwhBnxWMBsbHDdQzPrs\n'+
	                'ibppG2YpxU76IfflA2/EmOMSqxcWzfflfr5fzjq78/MlFSSJSHZB7p06nd91n29GfIKtkpnFf6vlgKB\n'+
	                '0UCGRXiJPT2LsJXkekCgYEA5Vmk5WpoPZxTsSpaessePB2379nbAPMX8sBy27T6e8mLvVGTbTvLPtN/\n'+
	                'fh0PwDlzOM+wyrA3efK+9W1Jr3NHHeiOfP/5x7ffKJYuV0LRQl7qV8kh34t4PpRnV2BJCmhHe2SmT8z\n'+
	                'DiYSDBH11xtMD31n44psl7W8TwkQU7USLp8ECgYB1meajF+qv5SMricOweXzFSH8JEwYDKAm5/d+vk6\n'+
	                '2S7XnlaYbh4FtSHuSwbXbD0N11qSoAKKoQSfGPNFBnsBiGSlYxy8E6Pkv9+yOlnwnNXBVnZTPZbxdVm\n'+
	                'UohPpSlZFDlR5fUF0TX9Aa/NCtX62xtO0TsD6iRrabUX7c7jRLzuQKBgG8BfHYtklZ/m2JchX55YSDn\n'+
	                'oWdNolpLToQH8Y+1gKb5XdE78ockMbMu2r5HgqAfLk2I+KChubgkbZiMVOW+feVT8eM+Yb7wl+olBjj\n'+
	                'l9jKRjgr/Jo30Czb+zSXVTITlA/QNOxHUoa+lm2RI9QBOkclA2t2TCkBpSr70BMzyKEYBAoGAS6kvm2\n'+
	                'ThYDXUF2t6S33/hus4kBWRPGPsMuo/vsxoDr+tMnW0ENU9dEUfPKoRU/e/vdkAK9vatDjnoNHFMw0NO\n'+
	                '60GtOyaLzFdOoXddIvutlh/xib5gSArq52jdkp5aI5J4Mon3ML8PohOcdIMpIJLpLTwvawYlc2g92KM\n'+
	                '4cXx5ZY=\n'+
	                '-----END RSA PRIVATE KEY-----',
		RSA_PRIVATE1:'-----BEGIN RSA PRIVATE KEY-----\n'+
					'MIIEowIBAAKCAQEA13+pWl9kNYEv1P0tLEFpLpT2IJNMhL8CQq9umCtPLhIINyRo++6bAmr5j7qke0Q\n'+
					'77YkofBIB8Rj4frrFKBn/anMG1bFLo7UeCAKJg7hZruME+RicYaNMRtWuwjCElNLHQn2qSRPSDggS+X\n'+
					'DhNhXTFjKAhqlE1V/UBcmgdUBsFq8kA1NVgp9GeRfqZbo3SoIxk3gznLxvdnn+e3AIV175rIp5npC/4\n'+
					'JqUjZkugRKufgH3B4uyPMsxrCwPBwsUi826Ee8iYBBgbGMDxsQO110np+rt5RNwm72CAOZzbWxWr8ww\n'+
					'zW8JkhzHdqD0gzsQ3GiY78vudxM+/wytaju89A7j/QIDAQABAoIBAE+maNL1VRWNlT9VAIBOAPFtr3c\n'+
					'k2nBqJQy+yNLHlzGBCrZO59rOO07ueSVNqAPDmZ7XRjZtdXhGcXptz/ddfJE8yLbtG/b7N4lgXrFnzw\n'+
					'Yb9LeZCBvyfnvj+P7fbfGP4oRJ7EmsYMQ86b52oVcbQ/T9X5HmOIHhNH2bI4qS8CCFl9SL41ZBHv8SG\n'+
					'b1UiY4n3yRG9B3U+x2HDBJv8AP7IMDkBObLE/Vj+MVtsQsKuzvpLRjY047cmpdSAFoZV0qLgyvJadFd\n'+
					'TDrphuIOlk92CoBL/fZx2fptL08NOVnaMFqIH+L/AR1TduE/n8TZSbo+1FGptw9MjhPpSnOhqVGpqoU\n'+
					'CgYEA7qU+cl5MEOnSvqZ37/qJQmeUvQNzjSHhhX5zi+4Flx2pz+iakb2slXZDX0GwamSDP7kf0vGlp9\n'+
					't1jxG+kDth4naRy5bIS8RHq8pJBo+Run2HeOY3AQlnH40ClA6PJa1pgFsR9At+GYD4v9Ibp7uG1XCvP\n'+
					'REG90MlGtF7fJdklz8CgYEA5yuA/k0lbIjoLlI+ApbBZ4YJW45rVn5hsJ2S9H3GyDHjVsV8p/GTXsCw\n'+
					'o/usjzamKFCRTS1c7ELo1JF7ozT80s4+39HBmemJ7HpFqF7/0JGrPvGcNO9RLVf5Ic2a9OjOBKeuxEA\n'+
					'3l68uYgaOvk3+J7kBe2osenUtLu0g4SL7kcMCgYEA1/wyQmxZx8z38ZjUYBuN8s2wbkkbYZZSd/F0Pi\n'+
					'bUZGpycDsC+fiCpFr+qs3XDtOdfiTcSpxt4zfac/wJTpyQANhzJ6F18izY+QABi7CQogpOe/tPuN57u\n'+
					'LB0ru9mWyFRpNvHqepk3Ew/1cwhP3OXmsF7uHcaqNraUCVb7+1NGx0CgYADGNQblBECSTtDE5r9EeP5\n'+
					'bRRHA7twZzUL1rCXUfAN0o1HJlIrNdNRm6dCKyb+rC7Br4Ki1A7Ao4zW/DP51cXlVRoGiZrcYwKUBnd\n'+
					'UcCFhO/JdX4NGOkaOIvWVfFmtGklYSp7OxkV4ZMJsUcYryoOzKIlai+uYoGVAkbC1E3DnXQKBgEF5bv\n'+
					'A0TWbt4OsRHeyq+ESo0bhySzVIyO5qRizGtT/h3TjPIrpWdpgTuuhx6/VYK6FnlJdMaGy0jGGeYIKge\n'+
					'GQmwHSicZMFfPs6yDrq9uQnoqDDLelI9Vib7tP3Wpxr+AA5zD962qHP4DUv3sBW7PJ2BD2+Wk3xGKj0\n'+
					'qTBX8NIq\n'+
                    '-----END RSA PRIVATE KEY-----',

//		RSA_PRIVATE:'MIIEowIBAAKCAQEA13+pWl9kNYEv1P0tLEFpLpT2IJNMhL8CQq9umCtPLhIINyRo++6bAmr5j7qke0Q77YkofBIB8Rj4frrFKBn/anMG1bFLo7UeCAKJg7hZruME+RicYaNMRtWuwjCElNLHQn2qSRPSDggS+XDhNhXTFjKAhqlE1V/UBcmgdUBsFq8kA1NVgp9GeRfqZbo3SoIxk3gznLxvdnn+e3AIV175rIp5npC/4JqUjZkugRKufgH3B4uyPMsxrCwPBwsUi826Ee8iYBBgbGMDxsQO110np+rt5RNwm72CAOZzbWxWr8wwzW8JkhzHd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lai+uYoGVAkbC1E3DnXQKBgEF5bvA0TWbt4OsRHeyq+ESo0bhySzVIyO5qRizGtT/h3TjPIrpWdpgTuuhx6/VYK6FnlJdMaGy0jGGeYIKgeGQmwHSicZMFfPs6yDrq9uQnoqDDLelI9Vib7tP3Wpxr+AA5zD962qHP4DUv3sBW7PJ2BD2+Wk3xGKj0qTBX8NIq',
//		RSA_PUBLIC:'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA13+pWl9kNYEv1P0tLEFpLpT2IJNMhL8CQq9umCtPLhIINyRo++6bAmr5j7qke0Q77YkofBIB8Rj4frrFKBn/anMG1bFLo7UeCAKJg7hZruME+RicYaNMRtWuwjCElNLHQn2qSRPSDggS+XDhNhXTFjKAhqlE1V/UBcmgdUBsFq8kA1NVgp9GeRfqZbo3SoIxk3gznLxvdnn+e3AIV175rIp5npC/4JqUjZkugRKufgH3B4uyPMsxrCwPBwsUi826Ee8iYBBgbGMDxsQO110np+rt5RNwm72CAOZzbWxWr8wwzW8JkhzHdqD0gzsQ3GiY78vudxM+/wytaju89A7j/QIDAQAB',
	},
	Wxzf:{
		
		HOST:'api.mch.weixin.qq.com',
		UNIFIEDORDER_PATH:'/pay/unifiedorder',
		PORT:443,
		UNIFIEDORDER:'https://api.mch.weixin.qq.com/pay/unifiedorder',
		MICROPAY_PATH:'https://api.mch.weixin.qq.com/pay/micropay',

		
		APPID:'wxbc8cf2f4663cb909',//'wxfdd376654d8935bf',
		MCHID:'1491530102',//'1491530102',//微信支付商户号
//		APPSECRET: '32e0f98dac00b74e140865c5ac8ff979',//'9ef81bbc7a47a7ee6726e6c1313ed2c3',
		APPSECRET: '9b593dc5e07f0b60088ee6b88f390520',//'93be6d4ade8e79b73e065a7e73fbfd57',

		H5_APPID:'wxbc8cf2f4663cb909',//'wxb23a820537c2a2d3',
		H5_MCHID             :'1491530102',//微信支付商户号
//		H5_APPSECRET: '32e0f98dac00b74e140865c5ac8ff979',//'93be6d4ade8e79b73e065a7e73fbfd57',
		H5_APPSECRET: '9b593dc5e07f0b60088ee6b88f390520',//'93be6d4ade8e79b73e065a7e73fbfd57',
		
		KEY_APPID         :'appid',          // 应用id
		KEY_MCHID         :'mch_id',          // 商户号
		KEY_SUB_MCHID     :'sub_mch_id',          // 商户号

		KEY_NONCE_STR     :'nonce_str',        // 随机字符串
		KEY_BODY          :'body',             // 商品描述
		KEY_OUTTRADENO    :'out_trade_no',    // 商户订单号
		KEY_TOTALFEE      :'total_fee',      // 总金额
		KEY_EQUIPMENTIP   :'spbill_create_ip',// 终端IP
		KEY_NOTIFYURL     :'notify_url',      // 通知地址
		KEY_TRADETYPE     :'trade_type',      // 交易类型
		KEY_PREPAY_ID      :'prepay_id',      // 预支付交易会话
		KEY_OPENID        :'openid',
		
		KEY_NONCESTR:'noncestr',
		KEY_PACKAGE:'package',
		KEY_PARTNERID:'partnerid',
		KEY_PREPAYID:'prepayid',
		KEY_TIMESTAMP:'timestamp',
		KEY_SIGN          :'sign',             // 签名
		PARTNERKEY:'yRXasMttPrxqUIUEpuu3tJhmWFAcwuiH',  //公众号和开发帐号相同

		PACKAGE_TYPE:'Sign=WXPay',
		NOTIFY_URL:'http://pay.jqepay.cn/v30/weixin/notify',
		WX_FOLLOW:'MzIwOTY1NjUwNQ==',

	},
	
	//	ServerIP:'59.110.54.101',
//	MongoURL:'mongodb://'+'59.110.54.101'+':2700/tournote',
    Service:{
    	ERROR_OP:-1,
        MAINPAGE: 1,
        PRODUCT_LIST:2,    //菜品
        PRODUCT_DETAIL:3,  //菜品详情
        CATALOG_LIST:4,  //菜品分类
        PRODUCT_UPDATE:5,//
        PRODUCT_SALE:6,//put on/off sale
        MAINPAGE_BUYER: 7,
        PROMOTION_LIST: 8,
        PROMOTION_DETAIL: 9,
        PROMOTION_TAKE: 10,        
        BUYEER_REGION_LIST:12,
        BUYER_ADDRESS_DETAIL:13,
        BUYER_ADDRESS_EDIT:14,
        BUYER_ADDRESS_LIST:15,
        MEMBER_UPDATE:16,
        MEMBER_ADD:17,
        MEMBER_LIST:18,
        MEMBER_LIST_MYCOUPONS:19,
        MEMBER_OFFICIAL_LOGIN:20, //weixin / taobao official login
        MEMBER_REGISTER:21,   //SEND_SMS_REGISTER:21,
        MEMBER_DEALINGS:22,//SAFE_CHAGE_MOBILE_SMS:22,
        MEMBER_LIST_COUPONS:23,//SEND_SMS_RETRIEVE:23,
        MEMBER_COLLECT_COUPON:24,  //SEND_MAIL_RETRIEVE
        CHECK_SMS_RETRIEVE:25,
        CHECK_EMAIL_RETRIEVE:26,
        USER_RESET_PASSWORD:27,
        USER_REFUND_UPDATE_PWD:28,
        USER_REFUND_VERIFY_PWD:29,
        
        REGISTER:30,
        LOGIN:31,
        LOGOUT:32,
        USER_DETAIL:33,
        USER_CHANGE_PASSWORD:34,
        MEMBER_BIND:35,   //membind
        MEMBER_DETAIL:36,  //memberdetail
        USER_PAYSIGN_LIST:37,//BIND_LIST:37,           //绑定列表，Epay
        USER_DETAIL_UPDATE:38,
        USER_CHANGE_MOBILE:39,
        USER_DETAIL_LOOK:40,  //用户详情  epay not used again can be deleted
        USER_MYSHOP_LOOK:41,  //我的店铺
        USER_MYSHOP_UPDATE:42,  //我的店铺修改 USER_CONTACT_ADD
        USER_BUYER_LIST:43,  //我的会员功能  商户的买家就是会员USER_CONTACT_DELETE
        USER_BUYER_DETAIL:44,  //会员详情 USER_CONTACT_UPDATE
        USER_BUILD_SCANURL:45,//USER_ORDER_URL:45,
//        GROUP_FRIENDS:45,
        USER_PRINTER_LIST:46, //GROUP_LIST_MINE:46,
        MEMBER_VIP_CHECK:47,//FAVORITE_PRODUCT_ADD:47,
        USER_DESK_LIST:48,//FAVORITE_DELETE:48,
        USER_COMPLETE_SERVICE:49,//FAVORITE_LIST:49,
        USERS_LOOK:50,
        USER_MYSHOP_OPERATING:51,
        USER_START_SERVICE:52,
        USER_DISCOUNT_LIST:53,//FAVORITE_DELETE:48,
        USER_DESK_INFO:54,
        USER_SET_PRINTCID:55,
        USER_GET_CREDIT_LIST:56,  //get credit charge template list
        //processSetPrinterCID:
        OAUTHWX_SHARE:58,
        
        OAUTHCODE_LOGIN:59,
        
        MESSAGE_LIST:60,  //msglist  TOURNOTE_LIST
        MESSAGE_OFFICIAL:61,   //TOURNOTE_MINE
        ORDER_GIFT_LIST:62,
        MEMBER_COLLECT_GIFT:63,
        TOURNOTE_PRAISE:64,
        TOURNOTE_COMMENT_DEL:65,
        USER_MEMBER_COUPONLIST:66,//TOURNOTE_UPDATE:66,
        USER_STATISTICS_MEMBER_PAYMENTS:67,//TOURNOTE_DELETE:67,
	    MEMBER_PAYMENTLIST:68,//TOURNOTE_DETAIL:68,
	    ORDER_EARNINGSSTATISTICS:69,//ORDER_EARNINGSSTATISTICS TOURNOTE_COMMENT_LIST
	    ORDER_EARNINGSSTATISTICSREPORT:70,//ORDER_EARNINGSSTATISTICS TOURNOTE_COMMENT_LIST
	    PRODUCT_SALESSTATISTICSREPORT:71,
	    ORDER_CANCEL:72,
	    ORDER_COUNTERPAY:73,
	    ORDER_PAYSTATISTICSREPORT:74,
	    PRODUCT_SALESRANKINGREPORT:75,

		ORDER_MERGE:78,
		ORDER_DETAILS:79,//orderdetails,
		ORDER_PLACE:80,   //点餐
		ORDER_PAY_LIST:81,//used
		PAY_SUMMARY:82, //used
		ORDER_LIST_BUYER:83,  //used ORDER_DELETE
		TRANSFERIN_LIST:84,		//ORDER_REPLACE:84,
		TRANSFERIN_DETAIL:85, //ORDER_REFUND:85,
		ORDER_DETAIL:86,//ORDER_PAYDETAIL:86,
		ORDER_REFUND_DECLARE:87,
		BUYER_ORDER_LIST:88,//
		ORDER_APPOINT:89,
		ORDER_LIST_USER:90,//获取user数据库中user代表商户下的订单
		//ORDER_DETAIL_PRINTER:91,//print the change of order 
		ORDER_CHANGE_PRINTER:91,//print the change of order 
		ORDER_UPDATE:92,//修改订单
		ORDER_UPDATE_DESKORPUSH:93,//
		ORDER_STATISTICS:94,
		ORDER_PAY_STATISTICS:95,
		ORDER_STATUS_PRINT:96,
		ORDER_RESERVE_LIST:97,
		ORDER_STATUS_QUERY:98,
		ORDER_PAY_FLOW:99, //morning ,noon,evening flow,room, desk 


		//between 100 and 200 is new version op
      USER_COMPLETE_SERVICE1:149,//FAVORITE_LIST:49,
		REFRESH_LIST_USER1:190,//获取user数据库中user代表商户下的订单 for timeline param

//200 以后 内部调试使用
		PAY_COMPLETE:201,
		PAY_REFUND_COMPLETE:202,
      TEST:255,
 //from 300 for new function
      
      USER_MEMBER_LIST:300,
      USER_MEMBER_DETAIL:301,
      USER_MEMBER_IMPORT:302,
      USER_MEMBER_UPDATE:303,    
      USER_MEMBER_DELETE:304,
//for custom user after 500
        CUSTOM_USER:500,
		  ORDER_STATISTICS1:594,

        
    },
    Error:{
    	NONE_ERROR:0,
    	VERSION_UPDATE:1,
    	NEED_LOGIN:2,
    	NEED_MERCHANT:2,

    	BUSINESS:3,
    	ERROR_OP:4,
    	ERROR_PARAM:5,
        
    	ERROR_NOT_VIP:5,

        ERROR_MOBILE_UNREG:6,
        ERROR_EMAIL_UNREG:6,
        ERROR_MOBILE_USED:7,
        ERROR_RECORD_ADDED:8,
        ERROR_OAUTH:9,
		ERROR_DELETE:10,
		
        ERROR_EMAIL:18,
    	ERROR_BIND_ERROR:19,
    	ERROR_MOBILEPHONE:50,
    	ERROR_EMAILADDRESS:51,
    	ERROR_CHECK:99,
    	ERROR_GENERAL:100,

    	UNKNOWN:200,
    },
	
	Fy:{
		ALI_WX_PRECREATE_URL:'https://spay-mc.fuioupay.com/wxPreCreate',//'https://spay.fuiou.com/wxPreCreate',//'http://116.239.4.195:28164/wxPreCreate',//
		PRECREATE_URL:'https://spay-mc.fuioupay.com/preCreate',//'https://spay.fuiou.com/preCreate',//'http://116.239.4.195:28164/wxPreCreate',//
		MICROPAY_URL:'https://spay-mc.fuioupay.com/micropay',//'https://spay.fuiou.com/micropay',//'http://116.239.4.195:28164/wxPreCreate',//
	    
		REFUND_URL:'https://spay-mc.fuioupay.com/commonRefund',//'https://spay.fuiou.com/commonRefund',
		QUERY_URL: 'https://spay-mc.fuioupay.com/commonQuery',//'https://spay.fuiou.com/commonQuery',
		OPENID_URL:'http://116.239.4.195:28164/oauth2/getOpenid',//'https://spay.fuiou.com/oauth2/getOpenid',
		SPEAK_URL:'https://tpye.fuioupay.com/pushMqtt/pushData', 
	
		AGENTID:'08M0025913',//'08A9999999',//
		MCHID: '0001000F1626143', //'0002900F0370542',//
		
		NOTIFY_URL:'https://pay.jqepay.cn/v30/fy/notify',
	
		APPID:'wxfa089da95020ba1a',  //'wx5ac8eb4651fe544f',//
		
		PRIVATE_KEY:'-----BEGIN PRIVATE KEY-----\n'+//'-----BEGIN RSA PRIVATE KEY-----\n'+
		'MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAKxs3s5MJT6Uh3MG9iwVApIiutL6\n'+
		'W06JJguHhc/zlXoeHomgIAIIMSs+cqAM0j+KES1Xli/lg9fU+3hFCPVQ/aLUUh3C8byWQ0iWb3oV\n'+
		'4+OIWCRwfPDoPSMrtNnUjLTNStlM3o+7JDTTaV7hyu6PsIe9IEnvd+DI8jNuya5IOzR5AgMBAAEC\n'+
		'gYBgnIvnCbFgtDaE1CTBJHCRU1Zc+pyIj746fZATqcdaal/v+0GUAeUS9uWhGi4AHitrvYTQh4ht\n'+
		'OdBBXmUbl2rVkVATY04Lu4KdzO92HkA8O3Vm3vm++dnxedUmJKZoyvkEdC8/rRsxLcN9O7apHQPt\n'+
		'As7U7tJPIUqKb7OfWUCQUQJBAO5rwShhuWuVVf1tGYacbsMafJwQECRsDljOJxf3G/S/i1mXPPBZ\n'+
		'4uhqt438Yjv/eCjMiuagtTQj3d5K2Us/n40CQQC5I28eDHsmLGiEPUkvsMq87vH4C5kiu+11GG7V\n'+
		'9OwODTjfxHn9h5ubXJu/DpNUHBKwx2QdZAlVSLpCSCsPH4edAkBVy0KrpFbTxt41nq/Dx8D3xi02\n'+
		'/3S/ln6nKC/bKN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h3OjfQJAI3BV8JS6xzKh\n'+
		 '5SVtn/3Kv19XJ0tEIUnn2lCjvLQdAixZnQpj61ydxie1rggRBQ/5vLSlvq3H8zOelNeUF1fT1QJA\n'+
		 'DNo+tkHVXLY9H2kdWFoYTvuLexHAgrsnHxONOlSA5hcVLd1B3p9utOt3QeDf6x2i1lqhTH2w8gzj\n'+
		 'vsnx13tWqg==\n'+
			 '-----END PRIVATE KEY-----',
		 
		 PUBLIC_KEY:'-----BEGIN PUBLIC KEY-----\n'+
		 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsbN7OTCU+lIdzBvYsFQKSIrrS+ltOiSYLh4XP\n'+
		 '85V6Hh6JoCACCDErPnKgDNI/ihEtV5Yv5YPX1Pt4RQj1UP2i1FIdwvG8lkNIlm96FePjiFgkcHzw\n'+
		 '6D0jK7TZ1Iy0zUrZTN6PuyQ002le4cruj7CHvSBJ73fgyPIzbsmuSDs0eQIDAQAB\n'+
		 '-----END PUBLIC KEY-----',
			
	},
	
    Message:{
    	OK_MESSAGE:'OK',
    	VERSION_UPDATE:'您的客户端需要升级新版本了',
    	NEED_LOGIN:'会话已经失效，请您重新登录',
    	UNKNOW_OP:'未知的操作',
        ERROR_PARAM:'参数错误',
        ERROR_EMAIL:'发送邮件错误请换一个邮箱或者稍后再试',
        ERROR_NOT_VIP:'非VIP会员错误',
		ERROR_CATE_DELETE:'该分类下面还有商品，目前不能删除',
		
	
        ERROR_LOGIN:'用户不存在或者密码错误',
        ERROR_MOBILE_USED:'手机号已被使用',
        ERROR_MOBILE_UNREG:'手机号未注册'	,
        ERROR_EMAIL_UNREG:'邮箱未被绑定',
        ERROR_USER_UNFOUND:'未发现用户',
        ERROR_RECORD_ADDED:'记录已经添加',
        ERROR_OLD_PASSWORD:'原密码错误',
        ERROR_BIND_ERROR:'绑定错误,请注册',
        ERROR_REGISTER:'该会员已经存在,请使用绑定功能',
        NEED_MERCHANT:'需要填写商家',
        ERROR_OAUTH:'签名认证失败',
        REG_VERICODE_URLEN:'%a1%be%d0%c5%c2%ed%d3%c9%e7%d6%a1%bf%d1%e9%d6%a4%c2%eb%ce%aa/NUMBER/%a3%ac5%b7%d6%d6%d3%d3%d0%d0%a7',//'%a1%be%d0%c5%c2%ed%d3%c9%e7%d6%a1%bf%d7%a2%b2%e1%d1%e9%d6%a4%c2%eb%ce%aa/NUMBER/%a3%ac5%b7%d6%d6%d3%d3%d0%d0%a7'
        REG_VERICODE:'【信马由缰】验证码为/NUMBER/，20分钟有效',
        ERROR_MOBILEPHONE_USED:'该手机号已被使用，请您换一个号码或者找回密码',
        ERROR_EMAILADDRESS_USED:'该邮箱地址已被使用，请您换一个邮箱或者找回密码',
        ERROR_MOBILEPHONE_UNFOUND:'该手机号未注册，请注册',
        ERROR_EMAILADDRESS_UNFOUND:'该邮箱地址未被绑定，请先绑定或者换一个绑定的的邮箱',
        ERROR_CHECK_ERROR:'验证码校验失败，请重新获取',
        ERROR_SMS:'短信发送错误，请稍候再试',    	
        ERROR_MEMBER_UPDATE:'修改失败,请确认输入是否合法或者手机号未被用过。',
        ERROR_STORE_CLOSED:'店铺已打烊，请稍侯再下单',
        UNKNOWN:'未知错误'
    }
	    
});